package com.ruoyi.appraise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.appraise.mapper.AtbAppraiseMapper;
import com.ruoyi.appraise.domain.AtbAppraise;
import com.ruoyi.appraise.service.IAtbAppraiseService;

/**
 * 买房估价Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-16
 */
@Service
public class AtbAppraiseServiceImpl implements IAtbAppraiseService 
{
    @Autowired
    private AtbAppraiseMapper atbAppraiseMapper;

    /**
     * 查询买房估价
     * 
     * @param appraiseId 买房估价主键
     * @return 买房估价
     */
    @Override
    public AtbAppraise selectAtbAppraiseByAppraiseId(Long appraiseId)
    {
        return atbAppraiseMapper.selectAtbAppraiseByAppraiseId(appraiseId);
    }

    /**
     * 查询买房估价列表
     * 
     * @param atbAppraise 买房估价
     * @return 买房估价
     */
    @Override
    public List<AtbAppraise> selectAtbAppraiseList(AtbAppraise atbAppraise)
    {
        return atbAppraiseMapper.selectAtbAppraiseList(atbAppraise);
    }

    /**
     * 新增买房估价
     * 
     * @param atbAppraise 买房估价
     * @return 结果
     */
    @Override
    public int insertAtbAppraise(AtbAppraise atbAppraise)
    {
        return atbAppraiseMapper.insertAtbAppraise(atbAppraise);
    }

    /**
     * 修改买房估价
     * 
     * @param atbAppraise 买房估价
     * @return 结果
     */
    @Override
    public int updateAtbAppraise(AtbAppraise atbAppraise)
    {
        return atbAppraiseMapper.updateAtbAppraise(atbAppraise);
    }

    /**
     * 批量删除买房估价
     * 
     * @param appraiseIds 需要删除的买房估价主键
     * @return 结果
     */
    @Override
    public int deleteAtbAppraiseByAppraiseIds(Long[] appraiseIds)
    {
        return atbAppraiseMapper.deleteAtbAppraiseByAppraiseIds(appraiseIds);
    }

    /**
     * 删除买房估价信息
     * 
     * @param appraiseId 买房估价主键
     * @return 结果
     */
    @Override
    public int deleteAtbAppraiseByAppraiseId(Long appraiseId)
    {
        return atbAppraiseMapper.deleteAtbAppraiseByAppraiseId(appraiseId);
    }
}
